<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>商品管理</title>
    <link type="text/css" rel="stylesheet" href="http://localhost/program/Static/hdjs/hdui.css"/>
    <script type="text/javascript" src="http://localhost/program/Static/jquery/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="http://localhost/program/Application/Admin/View/List/js/js.js"></script>
    <link type="text/css" rel="stylesheet" href="http://localhost/program/Static/bootstrap/css/bootstrap.min.css"/>

</head>
<body>
<div class="wrap">
    <form action="<?php echo U('List/add');?>" method="post" class="form-inline hd-form" >
    <table class="table2">
        <thead>
     
        <tr>
            <td width="30"></td>
                <td>货品id</td>            
                <td>规格</td>
                <td>颜色</td>
                <td>库存</td>
                <td>货号</td>
            
        </tr>

        </thead>
        <tbody>
            


            <?php foreach ($data as $k=>$v){?>
            <tr>
                    <td width="30"></td>
                   <td><?php echo $k;?></td>
                    <!-- 循环输出笛卡儿积 -->
                    <?php foreach ($v as $key=>$value){?>          
                        <td><?php echo $value;?></td>
                        
                   <?php }?>
					<td><input type="text" name="prlist_stock[]"/></td>
                   <td><input type="text" name="prlist_id[]"/></td>              
                   
                </tr>
                
            </tr>
            <?php }?>
            <?php foreach ($list_id as $k=>$v){?>
            	<input type="hidden" name="list_id[]" value="<?php echo $v;?>">
            <?php }?>
        </tbody>
    </table>
    <div class="position-bottom">
        <input type="hidden"  name="pro_id"    value="<?php echo $hd['get']['pr_id'];?>"/>
        
        <input type="submit" class="hd-success" value="添加货品"/>
    </div>
    </form>
</div>

</body>
</html>


